﻿// 引入页面
import WorkBench from "@/pages/WorkBench"; // 工作台
import Goods from "@pages/Goods"; // 商品
import GoodsAdmain from "@pages/Goods/children/GoodsAdmain/index";
import Classify from "@pages/Goods/children/GoodsClassify";
import Specifications from "@pages/Goods/children/Specifications";
import GoodsEvaluate from "@pages/Goods/children/GoodsEvaluate";

import Marketing from "@pages/Marketing"; // 秒杀
import SeckillAdmin from "@pages/Marketing/children/SeckillAdmin"; //秒杀管理
import BargainAdmin from "@pages/Marketing/children/BargainAdmin"; // 砍价管理
import LiveAdmin from "@pages/Marketing/children/LiveAdmin"; //直播管理
import GroupAdmin from "@pages/Marketing/children/GroupAdmin"; // 团购管理
import SeckillConfigure from "@pages/Marketing/children/SeckillAdmin/children/SeckillConfigure"; //秒杀配置
import SeckillGoods from "@pages/Marketing/children/SeckillAdmin/children/SeckillGoods"; // 秒杀商品
// 砍价商品
import Bargaingoods from "@pages/Marketing/children/BargainAdmin/children/Bargaingoods";
//砍价列表
import Bargainlist from "@pages/Marketing/children/BargainAdmin/children/Bargainlist";
// 直播列表
import LiveList from "@pages/Marketing/children/LiveAdmin/children/LiveList";
// 创建直播
import CreateLive from "@pages/Marketing/children/LiveAdmin/children/CreateLive";

// 拼团商品
import Groupgoods from "@pages/Marketing/children/GroupAdmin/children/Groupgoods";
// 拼团列表
import GroupList from "@pages/Marketing/children/GroupAdmin/children/GroupList";
// 拼团添加商品
import PinAdd from '@pages/PinAdd/pinadd'

const menuList = [{
    path: "/main/workbench",
    name: "工作台",
    component: WorkBench,
},
{
    path: "/main/goods",
    name: "商品",
    component: Goods,
    children: [
        { from: "/main/goods", to: "/main/goods/goodsAdmain" },
        {
            path: "/main/goods/goodsAdmain",
            name: "商品管理",
            component: GoodsAdmain,
        },
        {
            path: "/main/goods/classify",
            name: "商品分类",
            component: Classify,
        },
        {
            path: "/main/goods/specifications",
            name: "商品规格",
            component: Specifications,
        },
        {
            path: "/main/goods/goodsEvaluate",
            name: "商品评价",
            component: GoodsEvaluate,
        },
    ],
},
{
    path: "/main/marketing",
    name: "营销",
    component: Marketing,
    children: [{
        path: "/main/marketing/seckillAdmin",
        name: "秒杀管理",
        component: SeckillAdmin,
        children: [{
            path: "/main/marketing/seckillAdmin/seckillConfigure",
            name: "秒杀配置",
            component: SeckillConfigure,
        },
        {
            path: "/main/marketing/seckillAdmin/seckillgoods",
            name: "秒杀商品",
            component: SeckillGoods,
        },
        ],
    },
    {
        path: "/main/marketing/bargainadmin",
        name: "砍价管理",
        component: BargainAdmin,
        children: [{
            path: "/main/marketing/bargainadmin/bargaingoods",
            name: "砍价商品",
            component: Bargaingoods,
        },
        {
            path: "/main/marketing/bargainadmin/bargainlist",
            name: "砍价列表",
            component: Bargainlist,
        },
        ],
    },
    {
        path: "/main/marketing/liveadmin",
        name: "直播管理",
        component: LiveAdmin,
        children: [{
            path: "/main/marketing/liveadmin/livelist",
            name: "直播列表",
            component: LiveList,
        },
        {
            path: "/main/marketing/liveadmin/createLive",
            name: "创建直播",
            component: CreateLive,
        },
        ],
    },
    {
        path: "/main/marketing/groupadmin",
        name: "拼团管理",
        component: GroupAdmin,
        children: [{
            path: "/main/marketing/groupadmin/groupgoods",
            name: "拼团商品",
            component: Groupgoods,
        },
        {
            path: "/main/marketing/groupadmin/groupList",
            name: "拼团列表",
            component: GroupList,
        },
        ],
    },
    ],
},
{
    path: "/main/pinadd",
    component: PinAdd,
},
{
    from: "/main",
    to: "/main/workbench",
},
];

export default menuList;
